package tpf.designer.pattern.course5.structure_pattern2.homework.cglib;

import org.junit.Test;

public class Client {
    @Test
    public void testCglib(){
        BusinessInterfaceProxy cglib = new BusinessInterfaceProxy();
        BusinessObject businessObject = (BusinessObject) cglib.getInstance(new BusinessObject());
        /*System.out.println(businessObject.getClass().getName());
        System.out.println(businessObject.getClass().getSuperclass().getName());*/
        businessObject.doSomething();
    }
}
